<template>
    <div>
        <el-table style="width: 100%" v-bind="attr" :header-cell-style="{ background: '#FFFFFF', color: '#000000' }" stripe>
            <el-table-column v-for="(item, index) in column" :key="index" v-bind="item">
                <template v-if="item.slots" #default="{ row }">
                    <slot :name="item.slots" :row="row"></slot>
                </template>
            </el-table-column>
        </el-table>
    </div>
</template>
<script setup>
import { defineProps, useAttrs } from 'vue'

const attr = useAttrs()

const props = defineProps({
    column: Array,

});
</script>
<style lang='scss' scoped></style>